
/**
 * 1-100 每输出5个换行
 * 
 * @author Lenovo
 *
 */
public class 素数 {
	public static void main(String[] args) {
		int count = 0;
		for (int i = 2; i < 100; i++) {
			boolean isSushu = true;
			for (int j = 2; j < i / 2 + 1; j++) {
				if (i % j == 0) {
					isSushu = false;
					break;
				}
			}
			if (isSushu) {
				System.out.print(i + "\t");
				count++;
				if (count % 5 == 0) {
					System.out.println();
				}
			}

		}
	}

}
